import 'package:flutter/material.dart';
import 'package:mathfun/utils/app_colors.dart';

class SettingCard extends StatelessWidget {
  final Widget child;

  const SettingCard({super.key, required this.child});

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: 4,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(16),
      ),
      color: Colors.white, // 由于 AppColors.cardBg 未定义，临时使用 Colors.white 作为替代，后续可根据实际需求修改
      child: Padding(
        padding: const EdgeInsets.all(16.0),
        child: child,
      ),
    );
  }
}